package com.wishu.finance.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.wishu.finance.domain.JrFactoringDetailsResponseDto;
import com.wishu.finance.domain.JrProductCreditLineResponseDTO;
import com.wishu.finance.domain.TJrFactoring;
import com.wishu.finance.mapper.TJrFactoringMapper;
import com.wishu.finance.service.TJrFactoringService;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author 25813
 * @description 针对表【t_jr_factoring(租约保理申请表)】的数据库操作Service实现
 * @createDate 2023-05-04 20:24:03
 */
@Service
public class TJrFactoringServiceImpl extends ServiceImpl<TJrFactoringMapper, TJrFactoring>
        implements TJrFactoringService {

    @Override
    public List<JrFactoringDetailsResponseDto> selectFactoringDetails(Long id) {
        return baseMapper.selectFactoringDetails(id);
    }

    @Override
    public TJrFactoring selectFactoring(Long id) {
        return baseMapper.selectById(id);
    }

    @Override
    public JrProductCreditLineResponseDTO selectJrByCreditLine(Long factoringId) {
        return baseMapper.selectJrByCreditLine(factoringId);
    }
}




